cmake_minimum_required(VERSION 3.20)

project(simple_flat_project)

set(CMAKE_CXX_STANDARD 17)

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin)

# 将所有源文件放到src_list中
file(GLOB_RECURSE SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)

# 将所有源文件添加到项目中
add_executable(simple_flat_project ${SRC_LIST})
# 头文件只有本项目使用，不需要对外暴露
target_include_directories(simple_flat_project PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})